package com.fuchuang.seckillsystem.dto;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class PreliminarySelectQuery extends PageQuery {
    
    public PreliminarySelectQuery() {
    }
    
    public PreliminarySelectQuery(Date startTime, Date endTime, String username) {
        this.startTime = startTime;
        this.endTime = endTime;
        this.username = username;
    }
    
    //查询开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    
    //查询结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    
    //用户名称
    private String username;
    
    public Date getStartTime() {
        return startTime;
    }
    
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    
    public Date getEndTime() {
        return endTime;
    }
    
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Override
    public String toString() {
        return "PreliminarySelectQuery{" +
                "startTime=" + startTime +
                ", endTime=" + endTime +
                ", username='" + username + '\'' +
                '}';
    }
}
